The Oracle InStr function appeared in the recent project, so I looked up information about it on the Internet.Usage of InStr and SUBSTR in OracleUsage of instr in Oracle:The format of the InStr method isINSTR (source string, the string to find,
You can use the InStr function to judge a string to determine whether it contains the specified character.
Its syntax is:
InStr (Sourcestring,deststring,start,appearposition). InStr (' Source string ', ' target string ', ' Start position ', ' first
Source: Tianji BLOG
I have been learning asp for some time. I have been writing my own program for the past few days and have encountered many problems. I have to consider some of the current vulnerabilities, for example, 'or and 1 = 1 and so on!
INSTR (source string, target string, start position, match ordinal)
In Oracle/plsql, the InStr function returns the position of the string to be intercepted in the source string. Retrieves only once, that is, from the beginning of the character to
When I was working on a project over the past few days, I used the instr function of Oracle to solve the problem of user group permission allocation. Now I have a good idea about this function. In OraclePLSQL, The instr function returns the position
INSTR (source string, target string, start position, matching serial number)In Oracle/PLSQL, The instr function returns the position of the string to be truncated in the source string. It is retrieved only once, that is, from the start of the
Oracle InStr functions
For the InStr function, we often use this: to find the position of a specified substring from a string. For example:
Sql> Select InStr (' Oracle ', ' or ') position from dual;
POSITION
----------
1
Starts at the first position
Usage of InStr and SUBSTR in Oracle
Usage of instr in Oracle:
The format of the InStr method is
INSTR (The source string, the string to find, starting with the first few characters, to find the ordinal number of matches)
Returns the location found,
Instr usage in Oracle:The format of the instr method isInstr (source string, the string to be searched, starting from the nth character, to find the nth matching serial number)Returns the location found. If not, 0 is returned.For example, in instr ('
In Oracle, you can use the instr function to determine whether a string contains specified characters.
Its syntax is:Instr (string, substring, position, occurrence)Where
String: indicates the source string;
Substring: The substring to be searched
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.